package com.rick.oauth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @ClassName AccountController
 * @Description 用户
 * @Date 2020/12/10 16:03
 * @Author Rick Jen
 */
@RestController
@RequestMapping(value = "/api")
public class AccountController {

    @GetMapping("/member")
    public Principal user(Principal member) {
        //获取当前用户信息
        return member;
    }
}
